package v1beta2

import (
	kubeapibeta2 "k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1beta2"
)

type CkeConfiguration struct {
	kubeapibeta2.InitConfiguration
	Ansible          AnsibleManger `json:"ansible,omitempty"`
	InsecureRegistry []string      `json:"insecureRegistry,omitempty"`
}

type AnsibleManger struct {
	LocalHostName     string   `json:"localHostName,omitempty"`
	LocalIp           string   `json:"localIp,omitempty"`
	AnsibleImageName  string   `json:"ansibleImageName,omitempty"`
	CkeadmWaitAddress string   `json:"ckeadmWaitAddress,omitempty"`
	ClusterID         string   `json:"clusterId,omitempty"`
	SshSecretKey      string   `json:"sshSecretKey,omitempty"`
	NodesConfig       string   `json:"nodesConfig,omitempty"`
	AllConfig         string   `json:"allConfig,omitempty"`
	Domains           []string `json:"domains,omitempty"`
	Mounts            []string `json:"mounts,omitempty"`
	AllowKnowHosts    []string `json:"allowKnowHosts,omitempty"`
	DockerPreconfiged []string `json:"dockerPreconfiged,omitempty"`
	ExternalArguments []string `json:"externalArguments,omitempty"`
}